package cn.cdeden.resource.unified.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Map;

/**
 * @ProjectName : ecm_hou
 * @Package : com.cdyd.ecm.onlineedit
 * @ClassName : OfficeShow
 * @Author : Yu.
 * @Description : // TODO 在线编辑 实体类
 * @Date : 2022/10/19 10:58
 * @Version : 1.0
 */
@Data
@AllArgsConstructor
public class OfficeShow {

    private String userId;
    private String username;
    private String avatarName;
    private Long id;
    private String treeId;
    private String type;
    private String fileType;
//    private HttpServletRequest request;
    private Map<String,Object> map;

    public OfficeShow(String userId, String username, String avatarName, Long id, String treeId, String type, String fileType) {
        this.userId = userId;
        this.username = username;
        this.avatarName = avatarName;
        this.id = id;
        this.treeId = treeId;
        this.type = type;
        this.fileType = fileType;
    }
    public String getUrlInfo(){
        return "?id=" + this.getId() + "&type=" + this.getType() +
            "&userId=" + this.getUserId() + "&username=" + this.getUsername() +
            "&fileType=" + this.getFileType() + "&treeId=" + this.getTreeId() ;
    }


}
